package com.intellagric.service.traceability.trace_produce;

import com.intellagric.common.pojo.LayuiDataGridResult;
import com.intellagric.common.pojo.ResponseMessage;
import com.intellagric.module.traceability.ProduceVo;
import com.intellagric.pojo.TraceProduce;

/**
 * @Author: zhy
 * @email: 1269679946@qq.com
 * @Date: 2018/10/31
 * @DESC： 溯源农产品信息管理服务
 */
public interface ProduceService {

    //增加农产品信息
    ResponseMessage addProduct(TraceProduce produce);

    //删除农产品信息
    ResponseMessage deleteProduct(String id);

    //修改农产品信息
    ResponseMessage editProduct(TraceProduce produce);

    //查询农产品信息
    TraceProduce getProductById(String id);
    LayuiDataGridResult getProductList();
    LayuiDataGridResult getProductList(String createBy);
    LayuiDataGridResult getProductPage(int page ,int rows);
    LayuiDataGridResult getProductPage(int page ,int rows,String createBy);
    LayuiDataGridResult getProductByVo(ProduceVo produceVo);

}
